﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Shuba.Model;

namespace Shuba.Business
{
    public class BulkUp
    {
        Shuba.Data.BulkUp bulk;

        public BulkUp()
        {
            bulk = new Shuba.Data.BulkUp();
        }

        public BulkUpInfo Get(string BATCH_ID)
        {
            return bulk.Get(BATCH_ID);
        }

        public List<Shuba.Model.BulkUpInfo> GetList(string BATCH_ID)
        {
            return bulk.GetList(BATCH_ID);
        }

        public List<BulkUpInfo> GetListTopupMonitor(string BATCH_ID)
        {
            return bulk.GetListTopupMonitor(BATCH_ID);
        }

        public List<TopUpBulkInfo> GetListTopupFailed(string value, string batch_id)
        {
            return bulk.GetListTopupFailed(value, batch_id);
        }

        public List<TopUpInfo> GetListTopupSuccess(string value, string batch_id)
        {
            return bulk.GetListTopupSuccess(value, batch_id);
        }

        public List<TopUpBulkInfo> GetListTopupApproval(string value, string batch_id)
        {
            return bulk.GetListTopupApproval(value, batch_id);
        }

        public int ExecuteCmdShell(string xp_cmdshellPath, string fileUploadPath, string uploadType, string UploadMaker)
        {
            return bulk.ExecuteCmdShell(xp_cmdshellPath, fileUploadPath, uploadType, UploadMaker);
        }

        public string ExecuteCommand(string xp_cmdshellPath, string fileUploadPath, string uploadType, string UploadMaker)
        {
            return bulk.ExecuteCommand(xp_cmdshellPath, fileUploadPath, uploadType, UploadMaker);
        }

        public List<PipelineBulkInfo> GetListPipelineSuccess(string value, string batch_id)
        {
            return bulk.GetListPipelineSuccess(value, batch_id);
        }

        public int GetRowNumberTopUpMonitor(string batch_id)
        {
            return bulk.GetRowNumberTopUpMonitor(batch_id);
        }
        public int GetRowNumberMaintenanceVisitMonitor(string batch_id)
        {
            return bulk.GetRowNumberMaintenanceVisitMonitor(batch_id);
        }

        public List<BulkUpInfo> GetListTopUpMonitoring(string batch_id, int currPage, int dataPerPage)
        {
            return bulk.GetListTopUpMonitoring(batch_id, currPage, dataPerPage);
        }
        public List<BulkUpInfo> GetListMaintenanceVisitMonitoring(string batch_id, int currPage, int dataPerPage)
        {
            return bulk.GetListMaintenanceVisitMonitoring(batch_id, currPage, dataPerPage);
        }

        public int GetRowNumberApprovalTopUpMonitor(string update_by, string batch_id)
        {
            return bulk.GetRowNumberaApprovalTopUpMonitor(update_by, batch_id);
        }
        public int GetRowNumberApprovalMaintenanceVisitMonitor(string update_by, string batch_id)
        {
            return bulk.GetRowNumberApprovalMaintenanceVisitMonitor(update_by, batch_id);
        }
        
        public List<BulkUpInfo> GetListApprovalTopUpMonitoring(string update_by, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return bulk.GetListApprovalTopUpMonitoring(update_by, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }
        public List<BulkUpInfo> GetListApprovalMaintenanceVisitMonitoring(string update_by, string batch_id, int currPage, int dataPerPage, string sortBy, string sortDir)
        {
            return bulk.GetListApprovalMaintenanceVisitMonitoring(update_by, batch_id, currPage, dataPerPage, sortBy, sortDir);
        }

        public void delete(string batch_id, string upload_type)
        {
            bulk.delete(batch_id, upload_type);
        }

        public int approve(string batch_id)
        {
            return bulk.approve(batch_id);
        }

        public int reject(string batch_id, string is_delete)
        {
            return bulk.reject(batch_id, is_delete);
        }

        public int ApproveTopupMonitoring(string batch_id, string is_delete)
        {
            return bulk.ApproveTopupMonitoring(batch_id, is_delete);
        }
        public int ApproveMaintenanceVisitMonitoring(string batch_id, string is_delete)
        {
            return bulk.ApproveMaintenanceVisitMonitoring(batch_id, is_delete);
        }

        public int getNumRecordperBatchid(string batch_id)
        {
            return bulk.getNumRecordperBatchid(batch_id);
        }

        public BulkUpInfo GetApprovalByID(string BATCH_ID)
        {
            return bulk.GetApprovalByID(BATCH_ID);
        }

        public int GetRowNumberPipelineMonitor(string batch_id)
        {
            return bulk.GetRowNumberPipelineMonitor(batch_id);
        }

        public List<BulkUpInfo> GetListpipelineMonitoring(string batch_id, int currPage, int dataPerPage)
        {
            return bulk.GetListpipelineMonitoring(batch_id, currPage, dataPerPage);
        }

        public int GetRowNumberApprovalPipelineMonitor(string update_by, string batch_id)
        {
            return bulk.GetRowNumberApprovalPipelineMonitor(update_by, batch_id);
        }

        public List<BulkUpInfo> GetListApprovalpipelineMonitoring(string update_by, string batch_id, int currPage, int dataPerPage)
        {
            return bulk.GetListApprovalpipelineMonitoring(update_by, batch_id, currPage, dataPerPage);
        }

        public int ApprovePipelineMonitoring(string batch_id, string is_delete)
        {
            return bulk.ApprovePipelineMonitoring(batch_id, is_delete);
        }

        public int GetRowNumberPipelinebyBatchID(string batch_id)
        {
            return bulk.GetRowNumberPipelinebyBatchID(batch_id);
        }

        public int GetRowNumberTopupbyBatchID(string batch_id)
        {
            return bulk.GetRowNumberTopupbyBatchID(batch_id);
        }
    }
}
